package com.ruoyi.broadcast.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.broadcast.mapper.GbssMapper;
import com.ruoyi.broadcast.domain.Gbss;
import com.ruoyi.broadcast.service.IGbssService;

/**
 * 广播实时Service业务层处理
 * 
 * @author hcc
 * @date 2024-12-01
 */
@Service
public class GbssServiceImpl extends ServiceImpl<GbssMapper, Gbss> implements IGbssService //修改
{
    @Autowired
    private GbssMapper gbssMapper;

    /**
     * 查询广播实时
     * 
     * @param broadcastRealId 广播实时主键
     * @return 广播实时
     */
    @Override
    public Gbss selectGbssByBroadcastRealId(String broadcastRealId)
    {
        return gbssMapper.selectGbssByBroadcastRealId(broadcastRealId);
    }

    /**
     * 查询广播实时列表
     * 
     * @param gbss 广播实时
     * @return 广播实时
     */
    @Override
    public List<Gbss> selectGbssList(Gbss gbss)
    {
        return gbssMapper.selectGbssList(gbss);
    }

    /**
     * 新增广播实时
     * 
     * @param gbss 广播实时
     * @return 结果
     */
    @Override
    public int insertGbss(Gbss gbss)
    {
        return gbssMapper.insertGbss(gbss);
    }

    /**
     * 修改广播实时
     * 
     * @param gbss 广播实时
     * @return 结果
     */
    @Override
    public int updateGbss(Gbss gbss)
    {
        return gbssMapper.updateGbss(gbss);
    }

    /**
     * 批量删除广播实时
     * 
     * @param broadcastRealIds 需要删除的广播实时主键
     * @return 结果
     */
    @Override
    public int deleteGbssByBroadcastRealIds(String[] broadcastRealIds)
    {
        return gbssMapper.deleteGbssByBroadcastRealIds(broadcastRealIds);
    }

    /**
     * 删除广播实时信息
     * 
     * @param broadcastRealId 广播实时主键
     * @return 结果
     */
    @Override
    public int deleteGbssByBroadcastRealId(String broadcastRealId)
    {
        return gbssMapper.deleteGbssByBroadcastRealId(broadcastRealId);
    }

    @Override
    public Gbss selectGbssByBroadcastRealByStationCode(String stationCode) {
        return gbssMapper.selectGbssByBroadcastRealByStationCode(stationCode);
    }
}
